<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
import { testMockGet } from '@/api/test'
import HelloWorld from '@/components/HelloWorld.vue'
import { onMounted, ref } from 'vue'

const msg = ref('')
onMounted(async () => {
  try {
    const { data } = await testMockGet()
    msg.value = data
  } catch (e) {}
})
</script>

<template>
  <img alt="Vue logo" src="@/assets/logo.png" />
  <HelloWorld :msg="msg" />
</template>

<style></style>
